//参考http://m.hyjianmei.com/products_list.html
var ajaxLoader = {
    ajaxPost: function (url, params, callback) {
        $.post(url, params, callback);
    },
    normalPost: function (URL, PARAMS, _blank) {
        var temp = document.createElement("form");
        temp.action = URL;
        temp.method = "post";
        temp.style.display = "none";
        if (undefined != _blank) temp.target = "_blank";
        for (var x in PARAMS) {
            var opt = document.createElement("textarea");
            opt.name = x;
            opt.value = PARAMS[x];
            temp.appendChild(opt);
        }
        document.body.appendChild(temp);
        temp.submit();
        return temp;
    },
    onEnter: function (func) {
        var event = arguments.callee.caller.arguments[0] || window.event; //消除浏览器差异
        if (event.keyCode == 13) {
            func();
        }
    }
}